assertm(condition) assertm(condition, msg)
Check condition. If false call error(msg)
condition | any | boolean |
msg | any | error message that will be displayed if condition==false |
This function returns no output arguments
assertm(exist(fname,'file'),'input file does not exist')